<?php

include 'TMS/Conf.php';

if(!empty($_GET['language']))
{
    $TMS->setLanguage($_GET['language']);
    unset($_GET);    
}

$includeFile = 'content/content_tabs_'.substr($TMS->language, 0 ,2).'.php';

if(!file_exists($includeFile))
{
    $includeFile = 'content/content_tabs_en.php';
}
include $includeFile;

$TMS->tab[1]['content'] = $contentTab1;
$TMS->tab[2]['content'] = $contentTab2;
$TMS->tab[3]['content'] = $contentTab3;
$TMS->tab[4]['content'] = $contentTab4;
$TMS->tab[5]['content'] = htmlentities($contentTab5);

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;">

    <head>
    	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    	<title>Tab Menu Section (TMS) <?php echo $TMS->TMSVersion; ?> Demo</title>
    	<link rel="stylesheet" type="text/css" href="<?php $TMS->getCSSPath(true); ?>" />
    </head>
    
    <body style="background-color: #FBFBFB">
        <table align="center" style="width: 100%; height: 100%; vertical-align: middle; text-align: center;">
        	<tr>
        		<td>
        		 <table align="center" style="vertical-align: middle; text-align: center;">        		    
        		    <tr>
        				<td style="height: 100px; font-family: Arial,Helvetica,sans-serif; font-size: 20px; color: #666666; font-weight: bold;">
        					Tab Menu Section (TMS) <?php echo $TMS->TMSVersion; ?> DEMO
        					<br/>
        					<br/>        					
        				</td>
        			</tr>          		        		
        			<tr>
        				<td>
        				    <?php 
                                $TMS->generateTabMenuSection(true);
                            ?>
        				</td>
        			</tr>
        			<tr>
        				<td>
            				<table style="width: 84px" cellpadding="0" cellspacing="0">
            					<tr>
            					<?php 
            					    $languages[] = 'en';
            					    $languages[] = 'de';
            					    $languages[] = 'fr';
            					    foreach($languages as $key => $value)
            					    {
            					        $picBorder = 1;
            					        $picBorderColor = '999999';
            					        if($value == $TMS->language)
            					        {
            					            $picBorder = 1;
            					            $picBorderColor = '000000';
            					        }            					
            						    echo '<td><a href="index.php?language='.$value.'"><img height="15" src="content/icon_'.$value.'.gif" width="24" style="border: '.$picBorder.'px solid #'.$picBorderColor.'" /></a></td>';
            					    }        						            						        						
            				    ?>            						
            					</tr>
            				</table>
        				</td>
        			</tr>        			        			     			
        		</table>
        		</td>
        	</tr>
        </table>
    </body>
</html>
